package com.shinewind.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserAddressDto{
    @ApiModelProperty(value = "收货人姓名",required = true)
    @NotNull(message = "姓名不能为null")
    private String name;
    @ApiModelProperty(value = "收货人电话",required = true)
    @NotNull(message = "电话不能为null")
    private String telePhone;
    @ApiModelProperty(value = "收货人地址",required = true)
    @NotNull(message = "地址不能为null")
    private String address;
}
